package cn.shop.merchant.model.player;

import cn.shop.merchant.model.BaseEntity;
import cn.shop.utils.enums.Gender;
import cn.shop.utils.enums.Source;
import cn.shop.utils.enums.Status;
import com.baomidou.mybatisplus.annotation.*;


/**
 * @author : 李一涵
 * @date : Created in 2021-11-3 10:00
 * @description : 玩家信息类
 */
@TableName("merchant_play_account")
@SuppressWarnings("unused")
public class PlayerAccount extends BaseEntity {

    /** 分区编号 */
    private Long partitionId;
    /** username */
    private String username;
    /** 性别 */
    private Gender gender;
    /** 城市 */
    private String city;
    /** 签名 */
    private String sign;
    /** 积分 */
    private Long integral;
    /** 评分 */
    @TableField("`rank`")
    private Integer rank;
    /** 来源 */
    private Source source;
    /** 状态 */
    private Status status;

    public Long getPartitionId() {
        return partitionId;
    }

    public void setPartitionId(Long partitionId) {
        this.partitionId = partitionId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Long getIntegral() {
        return integral;
    }

    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Source getSource() {
        return source;
    }

    public void setSource(Source source) {
        this.source = source;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return super.toString() + "PlayerAccount{" +
                "partitionId=" + partitionId +
                ", username='" + username + '\'' +
                ", gender=" + gender +
                ", city='" + city + '\'' +
                ", sign='" + sign + '\'' +
                ", integral=" + integral +
                ", rank=" + rank +
                ", source=" + source +
                ", status=" + status +
                '}';
    }
}
